﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dpdw.Structure.DecoratorPattern
{
    /// <summary>
    /// 抹茶风味
    /// </summary>
    public class Mocha : CondimentDecorator
    {
        Beverage beverage;

        public Mocha(Beverage beverage)
        {
            this.beverage = beverage;
        }

        public override string Description
        {
            get
            {
                return this.beverage.Description + ", Mocha";
            }
            protected set
            {
                this.description = value;
            }
        }

        public override double Cost()
        {
            return beverage.Cost() + 0.20;
        }
    }
}
